package com.qf.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sunyamei
 * @version V1.0
 * @Project springmvc_Demo
 * @Package com.qf.controller
 * @Description:
 * @Date 2022/7/14 15:32
 */
//@Controller
    @RestController
public class HelloController {

    @RequestMapping("/sayHello")
    public String sayHello(){
        System.out.println("hello......");
//        int i=10/0;
        return "success";
    }
}
